import { Controller, Get, Query } from '@nestjs/common';
import { BottomService as Service } from '../../services/bottom/bottom.service';

@Controller('homebottom')
export class BottomController {

    constructor(private readonly service: Service) { }

   /**
    * 获取灯杆详情
    * @param query
    */
   @Get('getDeviceList')
   async getLamppostDevice(@Query() query): Promise<any> {
       return this.service.getDeviceList(query);
   }

    /**
    * 获取灯杆详情
    * @param query
    */
    @Get('getLamppostDetail')
    async getCounts(@Query() query): Promise<any> {
        return this.service.getLamppostDetail(query);
    }
}
